import bus from "@/bus";
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  columns: [{
    title: '门店名',
    key: 'storeName',
    align: 'left',
    minWidth: 200
  }, {
    title: '门店联系人',
    key: 'storeLinkName',
    align: 'left',
    minWidth: 200
  }, {
    title: '门店联系手机',
    key: 'storePhone',
    align: 'left',
    minWidth: 200
  }, {
    title: '商品',
    key: 'productName',
    align: 'left',
    minWidth: 300
  }, {
    title: '限购数量',
    key: 'limitNum',
    align: 'right',
    minWidth: 200
  }, {
    title: '操作',
    align: 'right',
    minWidth: 200,
    render: (h, params) => {
      const row = params.row
      let editBtn = h('Button', {
        props: {
          size: 'small',
          type: 'primary'
        },
        style: {
          'margin-right': '5px'
        },
        on: {
          click: () => {
            bus.$emit('onEditSize', { item: row, index: params.index })
          }
        }
      }, '修改')
      let deleteBtn = h('Button', {
        props: {
          size: 'small',
          type: 'default'
        },
        style: {
          'margin-right': '5px'
        },
        on: {
          click: () => {
            bus.$emit('onDel', { item: row, index: params.index })
          }
        }
      }, '删除')
      return h('div', [editBtn, deleteBtn])
    }
  }],
  data: []
}
export default data;